|
|
|
|
|
|
|
· Check the Visual Basic online help under Visual Basic Data Types for additional information on the high and low ranges for DOUBLE, INTEGER, and SINGLE data fields. |
|
|
|
|
|
|
|
|
· BOOLEAN data fields allow you to enter values other than 0 or -1 without reporting an error. Notice that Visual Basic alters the data you entered into these data fields without telling you! |
|
|
|
|
|
|
|
|
· The CURRENCY data field stores only the first four places to the right of the decimal. If you enter values beyond the fourth decimal place, Visual Basic rounds the value to four decimal places and gives you no message. |
|
|
|
|
|
|
|
|
· The DATETIME data field has some interesting behavior. Visual Basic does not let you store an invalid date or time in the data field; you receive a "Type mismatch" error instead. Also, the display format for the dates and times is determined by the settings you choose in the Windows Control Panel (through the International icon). In fact, when valid data is stored in a DATETIME data field, you can change the display format (say from 12-hour time display to 24-hour time display), and the next time you view that data record, it reflects the changes made through the Control Panel. |
|
|
|
|
|
|
|
|
· The GUID data field type is used to store special 128-bit numbers called Globally Unique Identifiers. |
|
|
|
|
|
|
|
|
· The BINARY data field type allows from 0 to 255 bytes of data storage and has only limited uses. If you are using the Visual Data Manager, you see a "Binary" field typethis is actually the LONGBINARY field. |
|
|
|
|
|
|
|
|
· The MEMO and LONGBINARY data field types are known as "large value" data fields since they can hold up to 1.2 gigabytes of data in a single field. If you are working with large data fields, you need to move data between your program and the data table using the GetChunk and AppendChunk methods. You learn more about these methods on Day 9. |
|
|
|
|
|
|
|
|
· The Visual Basic 5 documentation describes several other data field types recognized by Microsoft Jet (Big Integer, Char, Decimal, Float, Numeric, Time, TimeStamp, and VarBinary). However, these other data field types cannot be created using the Visual Data Manager or using Visual Basic code. These additional data field types may be returned by data tables built using other database tools, including Microsoft SQL Server or other back-end databases. |
|
|
|
|
|